﻿
namespace NetROS.Tiers.Windows.Forms
{
	/// <summary>
	/// This is the abstract edit form for the <see cref="Entities.Organizacija"/> entity.
	/// </summary>
	/// <remarks>This class is overwritten by .netTiers at each generation.</remarks>
	[System.ComponentModel.DesignerCategoryAttribute("code")]
	public abstract class OrganizacijaEditControlBase : System.Windows.Forms.UserControl
	{
		#region Fields
		
		//private System.Windows.Forms.TableLayoutPanel uxTableLayoutPanel;
		/// <summary>
		/// The ErrorProvider for the Entity;
		/// </summary>
		protected System.Windows.Forms.ErrorProvider uxErrorProvider;
		
		/// <summary>
		/// The BindingSource for the entity.
		///</summary>
		protected System.Windows.Forms.BindingSource uxBindingSource;
						
		
		/// <summary>
		/// TextBox for the ID property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxID;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the ID property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDLabel;
		
		/// <summary>
		/// TextBox for the Naziv property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNaziv;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Naziv property.
		/// </summary>
		protected System.Windows.Forms.Label uxNazivLabel;
		
		/// <summary>
		/// ComboBox for the IDRoditelj property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDRoditelj;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDRoditelj property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDRoditeljLabel;
		
		/// <summary>
		/// TextBox for the Hierarchy property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxHierarchy;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Hierarchy property.
		/// </summary>
		protected System.Windows.Forms.Label uxHierarchyLabel;
		
		/// <summary>
		/// TextBox for the Lvl property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxLvl;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Lvl property.
		/// </summary>
		protected System.Windows.Forms.Label uxLvlLabel;
		
		/// <summary>
		/// ComboBox for the IDTip property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDTip;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDTip property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDTipLabel;
		
		/// <summary>
		/// TextBox for the SifraSkladista property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxSifraSkladista;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the SifraSkladista property.
		/// </summary>
		protected System.Windows.Forms.Label uxSifraSkladistaLabel;
		
		/// <summary>
		/// TextBox for the Grupa property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxGrupa;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Grupa property.
		/// </summary>
		protected System.Windows.Forms.Label uxGrupaLabel;
		
		/// <summary>
		/// TextBox for the Telefon property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxTelefon;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Telefon property.
		/// </summary>
		protected System.Windows.Forms.Label uxTelefonLabel;
		
		/// <summary>
		/// TextBox for the Fax property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxFax;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Fax property.
		/// </summary>
		protected System.Windows.Forms.Label uxFaxLabel;
		
		/// <summary>
		/// TextBox for the Adresa property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxAdresa;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Adresa property.
		/// </summary>
		protected System.Windows.Forms.Label uxAdresaLabel;
		
		/// <summary>
		/// TextBox for the EMail property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxEMail;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the EMail property.
		/// </summary>
		protected System.Windows.Forms.Label uxEMailLabel;
		
		/// <summary>
		/// ComboBox for the IDMjesto property.
		/// </summary>
		protected System.Windows.Forms.ComboBox uxIDMjesto;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the IDMjesto property.
		/// </summary>
		protected System.Windows.Forms.Label uxIDMjestoLabel;
		
		/// <summary>
		/// TextBox for the Direktor property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxDirektor;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Direktor property.
		/// </summary>
		protected System.Windows.Forms.Label uxDirektorLabel;
		
		/// <summary>
		/// TextBox for the Poreznibroj property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxPoreznibroj;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the Poreznibroj property.
		/// </summary>
		protected System.Windows.Forms.Label uxPoreznibrojLabel;
		
		/// <summary>
		/// TextBox for the OznakaDjelatnosti property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOznakaDjelatnosti;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the OznakaDjelatnosti property.
		/// </summary>
		protected System.Windows.Forms.Label uxOznakaDjelatnostiLabel;
		
		/// <summary>
		/// TextBox for the NadleznaIspostavaPorUp property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxNadleznaIspostavaPorUp;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the NadleznaIspostavaPorUp property.
		/// </summary>
		protected System.Windows.Forms.Label uxNadleznaIspostavaPorUpLabel;
		
		/// <summary>
		/// TextBox for the OrgOIB property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxOrgOIB;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the OrgOIB property.
		/// </summary>
		protected System.Windows.Forms.Label uxOrgOIBLabel;
		
		/// <summary>
		/// TextBox for the CalculatedHierarchy property. 
		/// </summary>
		protected System.Windows.Forms.TextBox uxCalculatedHierarchy;
		
		/// <summary>
		/// The <see cref="System.Windows.Forms.Label"/> associated with the CalculatedHierarchy property.
		/// </summary>
		protected System.Windows.Forms.Label uxCalculatedHierarchyLabel;
		#endregion
		
		#region Main entity
		private Entities.Organizacija _Organizacija;
		/// <summary>
		/// Gets or sets the <see cref="Entities.Organizacija"/> entity to edit with this form.
		/// </summary>
		/// <value>The <see cref="Entities.Organizacija"/> instance.</value>
		public Entities.Organizacija Organizacija
		{
			get {return this._Organizacija;}
			set
			{
				this._Organizacija = value;
				if (value != null) 
				{
					this.uxBindingSource.DataSource = value;
					BindControls();
				}			
				
			}
		}
		#endregion
		
		/// <summary>
		/// Binds the controls.
		/// </summary>
		private void BindControls()
		{
			this.uxID.DataBindings.Clear();
			this.uxID.DataBindings.Add("Text", this.uxBindingSource, "ID", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNaziv.DataBindings.Clear();
			this.uxNaziv.DataBindings.Add("Text", this.uxBindingSource, "Naziv", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDRoditelj.DataBindings.Clear();
			this.uxIDRoditelj.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDRoditelj", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxHierarchy.DataBindings.Clear();
			this.uxHierarchy.DataBindings.Add("Text", this.uxBindingSource, "Hierarchy", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxLvl.DataBindings.Clear();
			this.uxLvl.DataBindings.Add("Text", this.uxBindingSource, "Lvl", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDTip.DataBindings.Clear();
			this.uxIDTip.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDTip", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxSifraSkladista.DataBindings.Clear();
			this.uxSifraSkladista.DataBindings.Add("Text", this.uxBindingSource, "SifraSkladista", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxGrupa.DataBindings.Clear();
			this.uxGrupa.DataBindings.Add("Text", this.uxBindingSource, "Grupa", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxTelefon.DataBindings.Clear();
			this.uxTelefon.DataBindings.Add("Text", this.uxBindingSource, "Telefon", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxFax.DataBindings.Clear();
			this.uxFax.DataBindings.Add("Text", this.uxBindingSource, "Fax", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxAdresa.DataBindings.Clear();
			this.uxAdresa.DataBindings.Add("Text", this.uxBindingSource, "Adresa", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxEMail.DataBindings.Clear();
			this.uxEMail.DataBindings.Add("Text", this.uxBindingSource, "EMail", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxIDMjesto.DataBindings.Clear();
			this.uxIDMjesto.DataBindings.Add("SelectedValue", this.uxBindingSource, "IDMjesto", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxDirektor.DataBindings.Clear();
			this.uxDirektor.DataBindings.Add("Text", this.uxBindingSource, "Direktor", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxPoreznibroj.DataBindings.Clear();
			this.uxPoreznibroj.DataBindings.Add("Text", this.uxBindingSource, "Poreznibroj", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOznakaDjelatnosti.DataBindings.Clear();
			this.uxOznakaDjelatnosti.DataBindings.Add("Text", this.uxBindingSource, "OznakaDjelatnosti", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxNadleznaIspostavaPorUp.DataBindings.Clear();
			this.uxNadleznaIspostavaPorUp.DataBindings.Add("Text", this.uxBindingSource, "NadleznaIspostavaPorUp", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxOrgOIB.DataBindings.Clear();
			this.uxOrgOIB.DataBindings.Add("Text", this.uxBindingSource, "OrgOIB", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
			this.uxCalculatedHierarchy.DataBindings.Clear();
			this.uxCalculatedHierarchy.DataBindings.Add("Text", this.uxBindingSource, "CalculatedHierarchy", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged);
		}					
		
		#region Constructor
		
		/// <summary>
		/// Initializes a new instance of the <see cref="OrganizacijaEditControlBase"/> class.
		/// </summary>
		public OrganizacijaEditControlBase()
		{
			InitializeComponent();			
			
			this.uxBindingSource.CurrentItemChanged += new System.EventHandler(uxBindingSource_currentItemChanged);
		}		
		
		/// <summary>
		/// 
		/// </summary>
		private void uxBindingSource_currentItemChanged(object sender, System.EventArgs e)
		{
			if (_Organizacija != null) _Organizacija.Validate();
		}	
				
		/// <summary>
		/// Initializes the component.
		/// </summary>
		public void InitializeComponent()
		{
			this.components = new System.ComponentModel.Container();
			this.uxErrorProvider = new System.Windows.Forms.ErrorProvider(this.components);
			this.uxBindingSource = new System.Windows.Forms.BindingSource(this.components);
			
			//this.uxTableLayoutPanel = new System.Windows.Forms.TableLayoutPanel();
			this.uxID = new System.Windows.Forms.TextBox();
			uxIDLabel = new System.Windows.Forms.Label();
			this.uxNaziv = new System.Windows.Forms.TextBox();
			uxNazivLabel = new System.Windows.Forms.Label();
			this.uxIDRoditelj = new System.Windows.Forms.ComboBox();
			uxIDRoditeljLabel = new System.Windows.Forms.Label();
			this.uxHierarchy = new System.Windows.Forms.TextBox();
			uxHierarchyLabel = new System.Windows.Forms.Label();
			this.uxLvl = new System.Windows.Forms.TextBox();
			uxLvlLabel = new System.Windows.Forms.Label();
			this.uxIDTip = new System.Windows.Forms.ComboBox();
			uxIDTipLabel = new System.Windows.Forms.Label();
			this.uxSifraSkladista = new System.Windows.Forms.TextBox();
			uxSifraSkladistaLabel = new System.Windows.Forms.Label();
			this.uxGrupa = new System.Windows.Forms.TextBox();
			uxGrupaLabel = new System.Windows.Forms.Label();
			this.uxTelefon = new System.Windows.Forms.TextBox();
			uxTelefonLabel = new System.Windows.Forms.Label();
			this.uxFax = new System.Windows.Forms.TextBox();
			uxFaxLabel = new System.Windows.Forms.Label();
			this.uxAdresa = new System.Windows.Forms.TextBox();
			uxAdresaLabel = new System.Windows.Forms.Label();
			this.uxEMail = new System.Windows.Forms.TextBox();
			uxEMailLabel = new System.Windows.Forms.Label();
			this.uxIDMjesto = new System.Windows.Forms.ComboBox();
			uxIDMjestoLabel = new System.Windows.Forms.Label();
			this.uxDirektor = new System.Windows.Forms.TextBox();
			uxDirektorLabel = new System.Windows.Forms.Label();
			this.uxPoreznibroj = new System.Windows.Forms.TextBox();
			uxPoreznibrojLabel = new System.Windows.Forms.Label();
			this.uxOznakaDjelatnosti = new System.Windows.Forms.TextBox();
			uxOznakaDjelatnostiLabel = new System.Windows.Forms.Label();
			this.uxNadleznaIspostavaPorUp = new System.Windows.Forms.TextBox();
			uxNadleznaIspostavaPorUpLabel = new System.Windows.Forms.Label();
			this.uxOrgOIB = new System.Windows.Forms.TextBox();
			uxOrgOIBLabel = new System.Windows.Forms.Label();
			this.uxCalculatedHierarchy = new System.Windows.Forms.TextBox();
			uxCalculatedHierarchyLabel = new System.Windows.Forms.Label();
			
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).BeginInit();
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).BeginInit();
			this.SuspendLayout();
			
			// 
			// uxTableLayoutPanel
			// 
			//this.uxTableLayoutPanel.AutoSize = true;
			//this.uxTableLayoutPanel.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink;
			//this.uxTableLayoutPanel.ColumnCount = 2;
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 120F));
			//this.uxTableLayoutPanel.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 250F));
			//this.uxTableLayoutPanel.Location = new System.Drawing.System.Drawing.Point(3, 3);
			//this.uxTableLayoutPanel.Name = "uxTableLayoutPanel";
			//this.uxTableLayoutPanel.RowCount = 2;
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F));
			//this.uxTableLayoutPanel.Size = new System.Drawing.Size(450, 50);
			//this.uxTableLayoutPanel.TabIndex = 0;
			
			//
			// uxErrorProvider
			//
			this.uxErrorProvider.ContainerControl = this;
			this.uxErrorProvider.DataSource = this.uxBindingSource;
			
			//
			// uxIDLabel
			//
			this.uxIDLabel.Text = "ID:";
			this.uxIDLabel.Location = new System.Drawing.Point(3, 0);
			this.Controls.Add(this.uxIDLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDLabel);			
			//
			// uxID
			//
			this.uxID.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxID);
			this.uxID.Location = new System.Drawing.Point(160, 0);
			this.Controls.Add(this.uxID);
			//
			// uxNazivLabel
			//
			this.uxNazivLabel.Text = "Naziv:";
			this.uxNazivLabel.Location = new System.Drawing.Point(3, 26);
			this.Controls.Add(this.uxNazivLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNazivLabel);			
			//
			// uxNaziv
			//
			this.uxNaziv.Width = 250;
			this.uxNaziv.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNaziv);
			this.uxNaziv.Location = new System.Drawing.Point(160, 26);
			this.Controls.Add(this.uxNaziv);
			//
			// uxIDRoditeljLabel
			//
			this.uxIDRoditeljLabel.Text = "IDRoditelj:";
			this.uxIDRoditeljLabel.Location = new System.Drawing.Point(3, 52);
			this.Controls.Add(this.uxIDRoditeljLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDRoditeljLabel);			
			//
			// uxIDRoditelj
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDRoditelj);
			this.uxIDRoditelj.Location = new System.Drawing.Point(160, 52);
			this.Controls.Add(this.uxIDRoditelj);
			//
			// uxHierarchyLabel
			//
			this.uxHierarchyLabel.Text = "Hierarchy:";
			this.uxHierarchyLabel.Location = new System.Drawing.Point(3, 78);
			this.Controls.Add(this.uxHierarchyLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxHierarchyLabel);			
			//
			// uxHierarchy
			//
			this.uxHierarchy.Width = 250;
			this.uxHierarchy.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxHierarchy);
			this.uxHierarchy.Location = new System.Drawing.Point(160, 78);
			this.Controls.Add(this.uxHierarchy);
			//
			// uxLvlLabel
			//
			this.uxLvlLabel.Text = "Lvl:";
			this.uxLvlLabel.Location = new System.Drawing.Point(3, 104);
			this.Controls.Add(this.uxLvlLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxLvlLabel);			
			//
			// uxLvl
			//
			this.uxLvl.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxLvl);
			this.uxLvl.Location = new System.Drawing.Point(160, 104);
			this.Controls.Add(this.uxLvl);
			//
			// uxIDTipLabel
			//
			this.uxIDTipLabel.Text = "IDTip:";
			this.uxIDTipLabel.Location = new System.Drawing.Point(3, 130);
			this.Controls.Add(this.uxIDTipLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTipLabel);			
			//
			// uxIDTip
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDTip);
			this.uxIDTip.Location = new System.Drawing.Point(160, 130);
			this.Controls.Add(this.uxIDTip);
			//
			// uxSifraSkladistaLabel
			//
			this.uxSifraSkladistaLabel.Text = "SifraSkladista:";
			this.uxSifraSkladistaLabel.Location = new System.Drawing.Point(3, 156);
			this.Controls.Add(this.uxSifraSkladistaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxSifraSkladistaLabel);			
			//
			// uxSifraSkladista
			//
			this.uxSifraSkladista.Width = 250;
			this.uxSifraSkladista.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxSifraSkladista);
			this.uxSifraSkladista.Location = new System.Drawing.Point(160, 156);
			this.Controls.Add(this.uxSifraSkladista);
			//
			// uxGrupaLabel
			//
			this.uxGrupaLabel.Text = "Grupa:";
			this.uxGrupaLabel.Location = new System.Drawing.Point(3, 182);
			this.Controls.Add(this.uxGrupaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxGrupaLabel);			
			//
			// uxGrupa
			//
			this.uxGrupa.Width = 250;
			this.uxGrupa.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxGrupa);
			this.uxGrupa.Location = new System.Drawing.Point(160, 182);
			this.Controls.Add(this.uxGrupa);
			//
			// uxTelefonLabel
			//
			this.uxTelefonLabel.Text = "Telefon:";
			this.uxTelefonLabel.Location = new System.Drawing.Point(3, 208);
			this.Controls.Add(this.uxTelefonLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxTelefonLabel);			
			//
			// uxTelefon
			//
			this.uxTelefon.Width = 250;
			this.uxTelefon.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxTelefon);
			this.uxTelefon.Location = new System.Drawing.Point(160, 208);
			this.Controls.Add(this.uxTelefon);
			//
			// uxFaxLabel
			//
			this.uxFaxLabel.Text = "Fax:";
			this.uxFaxLabel.Location = new System.Drawing.Point(3, 234);
			this.Controls.Add(this.uxFaxLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxFaxLabel);			
			//
			// uxFax
			//
			this.uxFax.Width = 250;
			this.uxFax.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxFax);
			this.uxFax.Location = new System.Drawing.Point(160, 234);
			this.Controls.Add(this.uxFax);
			//
			// uxAdresaLabel
			//
			this.uxAdresaLabel.Text = "Adresa:";
			this.uxAdresaLabel.Location = new System.Drawing.Point(3, 260);
			this.Controls.Add(this.uxAdresaLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxAdresaLabel);			
			//
			// uxAdresa
			//
			this.uxAdresa.Width = 250;
			this.uxAdresa.MaxLength = 200;
			//this.uxTableLayoutPanel.Controls.Add(this.uxAdresa);
			this.uxAdresa.Location = new System.Drawing.Point(160, 260);
			this.Controls.Add(this.uxAdresa);
			//
			// uxEMailLabel
			//
			this.uxEMailLabel.Text = "EMail:";
			this.uxEMailLabel.Location = new System.Drawing.Point(3, 286);
			this.Controls.Add(this.uxEMailLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxEMailLabel);			
			//
			// uxEMail
			//
			this.uxEMail.Width = 250;
			this.uxEMail.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxEMail);
			this.uxEMail.Location = new System.Drawing.Point(160, 286);
			this.Controls.Add(this.uxEMail);
			//
			// uxIDMjestoLabel
			//
			this.uxIDMjestoLabel.Text = "IDMjesto:";
			this.uxIDMjestoLabel.Location = new System.Drawing.Point(3, 312);
			this.Controls.Add(this.uxIDMjestoLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDMjestoLabel);			
			//
			// uxIDMjesto
			//
			//this.uxTableLayoutPanel.Controls.Add(this.uxIDMjesto);
			this.uxIDMjesto.Location = new System.Drawing.Point(160, 312);
			this.Controls.Add(this.uxIDMjesto);
			//
			// uxDirektorLabel
			//
			this.uxDirektorLabel.Text = "Direktor:";
			this.uxDirektorLabel.Location = new System.Drawing.Point(3, 338);
			this.Controls.Add(this.uxDirektorLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxDirektorLabel);			
			//
			// uxDirektor
			//
			this.uxDirektor.Width = 250;
			this.uxDirektor.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxDirektor);
			this.uxDirektor.Location = new System.Drawing.Point(160, 338);
			this.Controls.Add(this.uxDirektor);
			//
			// uxPoreznibrojLabel
			//
			this.uxPoreznibrojLabel.Text = "Poreznibroj:";
			this.uxPoreznibrojLabel.Location = new System.Drawing.Point(3, 364);
			this.Controls.Add(this.uxPoreznibrojLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxPoreznibrojLabel);			
			//
			// uxPoreznibroj
			//
			this.uxPoreznibroj.Width = 250;
			this.uxPoreznibroj.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxPoreznibroj);
			this.uxPoreznibroj.Location = new System.Drawing.Point(160, 364);
			this.Controls.Add(this.uxPoreznibroj);
			//
			// uxOznakaDjelatnostiLabel
			//
			this.uxOznakaDjelatnostiLabel.Text = "OznakaDjelatnosti:";
			this.uxOznakaDjelatnostiLabel.Location = new System.Drawing.Point(3, 390);
			this.Controls.Add(this.uxOznakaDjelatnostiLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOznakaDjelatnostiLabel);			
			//
			// uxOznakaDjelatnosti
			//
			this.uxOznakaDjelatnosti.Width = 250;
			this.uxOznakaDjelatnosti.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxOznakaDjelatnosti);
			this.uxOznakaDjelatnosti.Location = new System.Drawing.Point(160, 390);
			this.Controls.Add(this.uxOznakaDjelatnosti);
			//
			// uxNadleznaIspostavaPorUpLabel
			//
			this.uxNadleznaIspostavaPorUpLabel.Text = "NadleznaIspostavaPorUp:";
			this.uxNadleznaIspostavaPorUpLabel.Location = new System.Drawing.Point(3, 416);
			this.Controls.Add(this.uxNadleznaIspostavaPorUpLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxNadleznaIspostavaPorUpLabel);			
			//
			// uxNadleznaIspostavaPorUp
			//
			this.uxNadleznaIspostavaPorUp.Width = 250;
			this.uxNadleznaIspostavaPorUp.MaxLength = 100;
			//this.uxTableLayoutPanel.Controls.Add(this.uxNadleznaIspostavaPorUp);
			this.uxNadleznaIspostavaPorUp.Location = new System.Drawing.Point(160, 416);
			this.Controls.Add(this.uxNadleznaIspostavaPorUp);
			//
			// uxOrgOIBLabel
			//
			this.uxOrgOIBLabel.Text = "OrgOIB:";
			this.uxOrgOIBLabel.Location = new System.Drawing.Point(3, 442);
			this.Controls.Add(this.uxOrgOIBLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxOrgOIBLabel);			
			//
			// uxOrgOIB
			//
			this.uxOrgOIB.Width = 250;
			this.uxOrgOIB.MaxLength = 50;
			//this.uxTableLayoutPanel.Controls.Add(this.uxOrgOIB);
			this.uxOrgOIB.Location = new System.Drawing.Point(160, 442);
			this.Controls.Add(this.uxOrgOIB);
			//
			// uxCalculatedHierarchyLabel
			//
			this.uxCalculatedHierarchyLabel.Text = "CalculatedHierarchy:";
			this.uxCalculatedHierarchyLabel.Location = new System.Drawing.Point(3, 468);
			this.Controls.Add(this.uxCalculatedHierarchyLabel);
			//this.uxTableLayoutPanel.Controls.Add(this.uxCalculatedHierarchyLabel);			
			//
			// uxCalculatedHierarchy
			//
			this.uxCalculatedHierarchy.Width = 250;
			this.uxCalculatedHierarchy.MaxLength = 200;
			this.uxCalculatedHierarchy.ReadOnly = true;
			//this.uxTableLayoutPanel.Controls.Add(this.uxCalculatedHierarchy);
			this.uxCalculatedHierarchy.Location = new System.Drawing.Point(160, 468);
			this.Controls.Add(this.uxCalculatedHierarchy);
			//
			// uxIDMjesto
			//				
			this.uxIDMjesto.DisplayMember = "Naziv";	
			this.uxIDMjesto.ValueMember = "ID";	
			//
			// uxIDRoditelj
			//				
			this.uxIDRoditelj.DisplayMember = "Naziv";	
			this.uxIDRoditelj.ValueMember = "ID";	
			//
			// uxIDTip
			//				
			this.uxIDTip.DisplayMember = "Naziv";	
			this.uxIDTip.ValueMember = "ID";	
			// 
			// OrganizacijaEditControlBase
			// 
			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
			//this.Controls.Add(this.uxTableLayoutPanel);
			this.AutoScroll = true;
			this.Name = "OrganizacijaEditControlBase";
			this.Size = new System.Drawing.Size(478, 311);
			//this.Localizable = true;
			((System.ComponentModel.ISupportInitialize)(this.uxErrorProvider)).EndInit();
			((System.ComponentModel.ISupportInitialize)(this.uxBindingSource)).EndInit();			
			this.ResumeLayout(false);
			this.PerformLayout();
		}
		#endregion
				
		#region ComboBox List
		
				
		private Entities.TList<Entities.Mjesto> _IDMjestoList;
		
		/// <summary>
		/// The ComboBox associated with the IDMjesto property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Mjesto> IDMjestoList
		{
			get {return _IDMjestoList;}
			set 
			{
				this._IDMjestoList = value;
				this.uxIDMjesto.DataSource = null;
				this.uxIDMjesto.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDMjestoList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDMjesto property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDMjestoList
		{
			get { return _allowNewItemInIDMjestoList;}
			set
			{
				this._allowNewItemInIDMjestoList = value;
				this.uxIDMjesto.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.Organizacija> _IDRoditeljList;
		
		/// <summary>
		/// The ComboBox associated with the IDRoditelj property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.Organizacija> IDRoditeljList
		{
			get {return _IDRoditeljList;}
			set 
			{
				this._IDRoditeljList = value;
				this.uxIDRoditelj.DataSource = null;
				this.uxIDRoditelj.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDRoditeljList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDRoditelj property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDRoditeljList
		{
			get { return _allowNewItemInIDRoditeljList;}
			set
			{
				this._allowNewItemInIDRoditeljList = value;
				this.uxIDRoditelj.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
				
		private Entities.TList<Entities.OrganizacijaTip> _IDTipList;
		
		/// <summary>
		/// The ComboBox associated with the IDTip property.
		/// </summary>
		[System.ComponentModel.Category("ComboBox BindingSources")]
		public Entities.TList<Entities.OrganizacijaTip> IDTipList
		{
			get {return _IDTipList;}
			set 
			{
				this._IDTipList = value;
				this.uxIDTip.DataSource = null;
				this.uxIDTip.DataSource = value;
			}
		}
		
		private bool _allowNewItemInIDTipList;
		
		/// <summary>
		/// Indicates if the ComboBox associated with the IDTip property allow user to add item.
		/// </summary>
		[System.ComponentModel.Category(".netTiers"), System.ComponentModel.Description("Indicates if end user can add a new item in the combobox. an event will be thrown then.")]
		public bool AllowNewItemInIDTipList
		{
			get { return _allowNewItemInIDTipList;}
			set
			{
				this._allowNewItemInIDTipList = value;
				this.uxIDTip.DropDownStyle = value ? System.Windows.Forms.ComboBoxStyle.DropDown : System.Windows.Forms.ComboBoxStyle.DropDownList;
			}
		}
		
		
		#endregion
		
		/// <summary> 
		/// Required designer variable.
		/// </summary>
		private System.ComponentModel.IContainer components = null;

		/// <summary> 
		/// Clean up any resources being used.
		/// </summary>
		/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
		protected override void Dispose(bool disposing)
		{
			if (disposing && (components != null))
			{
				components.Dispose();
			}
			base.Dispose(disposing);
		}
	}
}
